package edu.psu.geovista.app.pcp.plot.control;

import javax.swing.*;

/*
 * edu.psu.geovista.app.pcp.plot.control.ActionMgr
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen
 * @date: Feb 8, 2005$
 * @version: 1.0
 */

public interface ActionMgr {
    /** Action enabled */
    int ACTION_ENABLED = 0;
    /** Action disabled */
    int ACTION_DISABLED = 1;
    /** Action not supported */
    int ACTION_UNKNOWN = 2;

    String ACTION_HIGHLIGHT = "Highlight";
    String ACTION_DATASHOWALL = "DataShowAll";
    String ACTION_SHOWMEDIANSUMMRY = "ShowMedianSummary";
    String ACTION_ShowObsrvSumm = "ShowObSummary";
    String ACTION_ShowNormal = "NormalMode";

    void reset();

    boolean processAction(String actionName);

    DfActionManager.PAction createAction(String name, String tooltip);

    void setActionEnable(String name, boolean enable);

    Action getAction(String actName);

    int getActionState(String actionName);

    JButton getButton(String btnName);
}
